/**
 * Created by baowei on 2018/10/17.
 */
import Request from "../../../utils/request.js";
var cf2 = require("../../../utils/config2");
export default class {
  // 获取优惠券列表
  static getCouponsList(phone) {
    return Request({
      "url": `${cf2.default.dataCenter}zmzj/coupon/${phone}`,
      type: 'get',
      data: {},
      header: {
        'content-type': 'application/json'
      }
    })
  }
  //领取优惠券
  static receiveCoupon(params) {
    return Request({
      "url": "app/coupons/create",
      type: "POST",
      data: params,
      headers: {
        "Content-type": "application/json"
      },
    })
  }
}
